import 'package:flutter/material.dart';
import 'package:laksa/widgets/laksa_dialog.dart';

class LoginService {

  static void login(BuildContext context, String username, String password) {
    if (username == 'admin' && password == '123456') {
      Navigator.pushNamed(context, '/chat');
    } else {
      showMessage(context, "用户名或密码不正确", DialogType.ERROR);
    }
  }

}